package com.telecom.restaurant.constant;

import com.telecom.restaurant.domin.vo.MenuFoodVO;
import com.telecom.restaurant.enums.FoodTypeEnum;
import com.telecom.restaurant.model.FoodPO;

import java.io.File;

/**
 * Created by qiqi on 2019/12/3.
 */
public class DefaultConstant {

    public static final int DEFAULT_PAGE_NO = 1;

    public static final int DEFAULT_PAGE_SIZE = 5;

    public static final String TEMP_EXCEL_PATH = "." + File.separator + "excel";

    public static final int PACKAGE_FOOD_PRICE = 2000;
    public static final String PACKAGE_FOOD_PICTURE = "package_food.jpg";

    public static final int COUPON_AMOUNT = 1000;

    public static final Long DEFAULT_RES_ID = 1L;

    public static final FoodPO EMPTY_FOOD = new FoodPO();

    public static final int CAN_ORDER_HOUR = 17;
    public static final int CAN_ORDER_MINUTE = 0;

    public static final long CLOSE_ORDER_TIME = 30L * 60 * 1000; // 30分钟自动关单


    public static MenuFoodVO PACKAGE_MAIN_MANTOU = new MenuFoodVO();
    public static MenuFoodVO PACKAGE_MAIN_RICE = new MenuFoodVO();
    static {
        PACKAGE_MAIN_RICE.setId(-1l);
        PACKAGE_MAIN_RICE.setRestaurantId(DEFAULT_RES_ID);
        PACKAGE_MAIN_RICE.setName("米饭");
        PACKAGE_MAIN_RICE.setPicture("rice.jpg");
        PACKAGE_MAIN_RICE.setType(FoodTypeEnum.PACKAGE_MAIN.getCode());
        PACKAGE_MAIN_RICE.setStock(100);

        PACKAGE_MAIN_MANTOU.setId(-2l);
        PACKAGE_MAIN_MANTOU.setRestaurantId(DEFAULT_RES_ID);
        PACKAGE_MAIN_MANTOU.setName("馒头");
        PACKAGE_MAIN_MANTOU.setPicture("mantou.jpg");
        PACKAGE_MAIN_MANTOU.setType(FoodTypeEnum.PACKAGE_MAIN.getCode());
        PACKAGE_MAIN_MANTOU.setStock(100);
    }

}
